<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var num = 12;
        var str = "aa";
        //简单数据类型 ,需要保存在 栈里面  ,string  number boolean undefined null

        var obj = { name: "dahuang", age: 12 };
        //复杂数据类型，需要将数据保存在 堆里,栈里面 保存的是 堆的起始内存地址
    </script>

</body>

</html>